package com.stringBuffer;

public class Test {
    /**
     * @param args
     */
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer("f,f,");
        System.out.println(sb.replace(sb.toString().length() - 1, sb.toString().length(), ""));
        String ss = "lklk\nlk\nkdfdf";
        System.out.println(ss);
        System.out.println(ss.replaceAll("\n", ""));
    }
}
